package com.atguigu.edustatistics;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.ManagedBean;

@SpringBootApplication
@EnableFeignClients //开启Feign调用，在客户端
@EnableDiscoveryClient //开启Nacos注册中心
@ComponentScan(basePackages = "com.atguigu")
@MapperScan("com.atguigu.edustatistics.mapper")
@EnableScheduling //开启定时器
public class StatisticsApplication {
    public static void main(String[] args) {
        SpringApplication.run(StatisticsApplication.class,args);
    }
}
